
using System;
using System.ComponentModel.DataAnnotations;
using Abp.Domain.Entities.Auditing;
using Yozeev.BusinessLogic;

namespace  Yozeev.BusinessLogic.Dtos
{
    public class PriceAuditEditDto
    {

        /// <summary>
        /// Id
        /// </summary>
        public Guid? Id { get; set; }

        /// <summary>
        /// TicketId
        /// </summary>
        public Guid TicketId { get; set; }



		/// <summary>
		/// OrgTicketPriceId
		/// </summary>
		public Guid? OrgTicketPriceId { get; set; }



		/// <summary>
		/// IsEnabled
		/// </summary>
		public bool IsEnabled { get; set; }



		/// <summary>
		/// Price
		/// </summary>
		public decimal Price { get; set; }



		/// <summary>
		/// Discount
		/// </summary>
		public decimal Discount { get; set; }



        /// <summary>
        /// 退款折扣
        /// </summary>
        public decimal RDiscount { get; set; }



        /// <summary>
        /// UpperTime
        /// </summary>
        public DateTime UpperTime { get; set; }



		/// <summary>
		/// LowerTime
		/// </summary>
		public DateTime? LowerTime { get; set; }



		/// <summary>
		/// AuditStatus
		/// </summary>
		public AuditStatusEnum AuditStatus { get; set; }


        /// <summary>
        /// 价格名称
        /// </summary>
        public string TicketName { get; set; }
        #region 时间格式处理
        public string UpperTimeStr { get; set; }
        public string LowerTimeStr { get; set; }

        public void SetTime()
        {
            if (!string.IsNullOrWhiteSpace(UpperTimeStr))
                UpperTime = DateTime.Parse(UpperTimeStr);

            if (!string.IsNullOrWhiteSpace(LowerTimeStr))
                LowerTime = DateTime.Parse(LowerTimeStr);

        }
        #endregion


        /// <summary>
        /// 仓位
        /// </summary>
        public WareHousePosition WarePosition { get; set; }
    }
}